package com.org.javabody.isornot;

/**
 * Created by Administrator on 2017-03-30.
 */
public class GetString implements  ReturnInterface{
    @Override
    public String getString(String obj) {
        return obj==null||obj.isEmpty()?"空值":obj.matches("[0-9]")?"数字":obj.matches("[A-Z]")?"大写英文":obj.matches("[a-z]")?"小写英文":"其他";
    }

    @Override
    public String getObject(Object obj) {
        return "";
    }
}
